<include file="Common/common" />
<?php $statusArr = array('0'=>'未激活','1'=>'已激活','2'=>'冻结'); ?>

<body>
	<div class="layui-tab-item layui-show">
		<div class="layui-main">
			<br>
			<div style="overflow-x: auto;">
				
				<table class="layui-table" style=" color: rgb(240,222,112);" >
					<thead>
							<tr style="background: rgb(57,61,73)">
								<th>用户ID</th>
								<th>会员账号</th>
								<th>推荐人</th>
								<th>注册时间</th>
								<th>手机号码</th>
								<th>状态</th>
							</tr> 
						</thead>
						<tbody>
							<foreach name="recommendList" item="vo">
								<tr style="background: #7d7d7d;color:rgb(240,222,112);">
									<td>{$vo['id']}</td>
									<td>{$vo['account']}</td>
									<td>{$userInfo['account']}</td>
									<td><?php echo date('Y-m-d H:i:s',$vo['createtime']) ?></td>
									<td>{$vo['phone']}</td>
									<td><span 
										<if condition="$vo['status'] eq 0 "> style="color:red;"<elseif condition="$vo['status'] eq 1"/>style="color:green;"<else/>style="color:orange;"</if> >
										{$statusArr[$vo['status']]}
										</span>
									</td>
								</tr>
							</foreach>
						</tbody>
				</table>
				<div class="green-black">{$page}</div>
			
			</div>
		</div>
	</div>
</body>
<include file="Common/footer" />